import {http} from '@/utils/http/axios';


export interface MenuArr {
  childMenuArrs: MenuArr[] | null;
  psDesc: string;
  psId: string;
  psName: string;
  psType: string;
  routerUrl: string;
}


/**
 * @description: 根据用户id获取用户菜单
 */
export function adminMenus() {
  return http.request({
    url: '/menus',
    method: 'GET',
  });
}

/**
 * 获取tree菜单列表
 *
 */
export function getMenuList() {
  return http.request({
    url: '/system/getMenus',
    method: 'GET'
  });
}


/**
 * 获取tree菜单列表
 * @param params
 */
export function getBasicList(params?) {
  return http.request({
    url: '/systemUserManager/system/auth/getAllAuth',
    method: 'GET',
    params,
  });

}
